<!--
Computer Science Course 531 - Introduction to Software Engineering
Olive Insurance Client Management System (Client Database Access)
Version 1.0 (Base System)
Spring 2011

-- Source Code Details --
Page Tile: coverageTypeDetails.php
Created By: David Gonzalez, Computer Science (Undergraduate)
Documented By: Darrius Serrant, Computer Science (Undergraduate)
Purpose: User interface allowing the system administrator to quickly add new coverage types
         to the relational database for use in the employeeDetails.php and the agencyGroupDetails.php
         form pages.
Status: In Evaluation: All security blocks, form validation, and database
         connectivity features have been omitted for the time being to illustrate
         the application's basic flow and functionality. This page only exists for evaluative
         purposes, and will later be replaced with functionality that mimics and extends the behavior
         that this page demonstrates.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <h2>Coverage Type Database:</h2>
    <body>
        <?php
        $User_Name = $_POST['User_Name'];
        $password = $_POST['password'];
        if(isset($_POST['save'])){
            echo "Record Saved <br>";
        }
        if(isset($_POST['delete'])){
            echo "Record Deleted <br>";
        }
        if(isset($_POST['find'])){
            echo "Display Record Found <br>";
        }
        if(isset($_POST['search'])){
            echo "Enter Coverage Type to Search <br>";
            ?>
            Coverage Type: <input type="text" name="CType">
            <form action="coverageTypeDetails.php" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="find" value="Find">
            </form>
            <?php
        }else{
        ?>
        Coverage Type: <input type="text" name="CType"><br>
        <form action="coverageTypeDetails.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="save" value="Save">
        </form>
        <form action="coverageTypeDetails.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="delete" value="Delete">
        </form>
        <form action="coverageTypeDetails.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="search" value="Search">
        </form>
        <form action="mainPage.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="LogOut" value="Back">
        </form>
        <?php
        }?>
    </body>
</html>